package com.jeedcp.gen.model;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @project: jeedcp
 * @description: ${description}
 * @author: caochaofeng
 * @create: 2019-07-09 16:44
 */
@Data
public class GenTableColumn implements Serializable {

    private boolean active;
    private int colIndex;//序列
    private int colLength; //长度
    private String colName;//字段名
    private String colType;//例如varchar(100)
    private int decimal;//小数
    private String extensionList;
    private String fieldLabel;//字段注释
    private String fieldName;//字段名    (上一个只的字段名)
    private String fieldPackagingType;
    private String formType;//表单类型
    private String defaultValue;//默认值
    private boolean hasReference;
    private boolean hasReferenceTable;
    private String keyType;//主键唯一
    private Integer notnull;//是否为空 YES or NO
    private boolean isPrimaryKey; //是否为主键 YES or NO
    private boolean update; //是否可以更新 YES or NO
    private boolean modify; //是否可以编辑 YES or NO
    private boolean must; //是否必填 YES or NO
    private boolean primaryKey;
    private String refType;
    private String refTable;
    private String refColumn;
    private String asColumn;

    private boolean requireMoreSpace;
    private String tableName; //表名
    private List<String> tableColumns;

    private Integer isInsert;//是否插入字段
    private Integer isList;//是否列表字段
    private Integer isQuery;//是否查询字段
    private String queryType;//查询方式（等于、不等于、大于、小于、范围、左like、右like、左右like）

}
